<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{% block title %}{% endblock %}——Virtual-Blog个人博客系统</title>
    {% block link %}
    {% endblock %}
    <link rel="shortcut icon" type="image/x-icon" href="/static/img/favicon.ico" media="screen" />


    <link rel="stylesheet" href="{{ url_for('static',filename = 'layui/css/layui.css') }}">
    <link rel="stylesheet" href="{{ url_for('static',filename = 'layui/css/layui.mobile.css') }}">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
    {% include "nav.html" %}
    <div class="layui-row  layui-col-space10">
        <div class="layui-col-md2">
            </br>
        </div>
        <div class="layui-col-md6">
            <div class="grid-demo grid-demo-bg1  ">
                {% block maintext %}
                {% endblock %}
                {%  include "main.html" %}
            </div>
        </div>
        <div class="layui-col-md1">
            </br>
        </div>
        <div class="layui-col-md2">
            <div class="grid-demo">
                {% include "tools.html" %}
            </div>
        </div>
        <div class="layui-col-md1">
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md12">
            {% include "footer.html" %}
      </div>
    </div>

</body>
<script src="{{ url_for('static',filename = 'layui/layui.js') }}" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
layui.use('element', function(){
  var element = layui.element; //导航的hover效果、二级菜单等功能，需要依赖element模块

  //监听导航点击
  element.on('nav(demo)', function(elem){
    //console.log(elem)
    layer.msg(elem.text());
  });
});
</script>
{% block footer %}
{% endblock %}
</html>